package tc.common.utility;

import java.awt.Graphics;
import java.awt.Point;
import java.awt.geom.Point2D;

import tc.common.display.GentityText;
import tc.common.symbology.Style;

public class DynbuffText extends DynbuffItem {
	Point    position;
	String   text;
	Style    style;
		
	public DynbuffText(Point position, String text, Style style) {
		this.position = position;
		this.text     = text;
		this.style = style;
	}
	
	public void draw(Graphics g) {
		GentityText gentity = new GentityText(text, new Point2D.Double(0.0, 0.0));
		gentity.style = style;
		gentity.display(g, position);		
	}
}
